package org.wwb.antbox.user.model.user.enums;

import org.ant.commons.models.ienums.ICodeEnum;

/**
 * @Author Bond
 * @Date: 2019/12/26 17:20
 * @Description: 系统用户账号状态枚举 状态 正常、停用、冻结
 * 注意:冻结状态不记录在表里,通过冻结结束时间判断是冻结几个小时,3000年为永久冻结
 */
public enum SysUserStatusEnum implements ICodeEnum {
    NORMAL("1", "正常"),
    DISABLED("2", "停用"),
    LOCKED("3", "冻结");

    private final String code;
    private String trans;


    SysUserStatusEnum(String code, String trans) {
        this.code = code;
        this.trans = trans;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getTrans() {
        return this.trans;
    }
}